Repository navigation
feat: add native SQS sending and queue topology - #229
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Review of PR #229 (SQS send adapter). The pooled-state design is sound, and the send, batch and topology paths hold up when I read them. One item blocks merge. Blocking: per-message allocations without maintainer approval (AGENTS.md, D18). If an exception is approved, these would reduce the cost without changing the public API:
Minor
Process. Attach the SHA-bound validation evidence and the per-message cost line once the D18 decision is made. The benchmarks added here do move per-message cost, so the |
|
@codex review The D18 allocation decision is explicitly unresolved. Please review this head's correctness and native semantics; keep the draft gate intact. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Disposition of Claude's current-head review, for 4eaa966:
No new head was pushed, so the pending Codex request still targets the current head. No promotion or merge is authorized by these dispositions. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4eaa9660b6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4eaa966 to
8b7b93d
Compare
Review of PR #229 (SQS send transport)Blocking: FIFO deduplication ID is tied to the literal Suggested fix: take the identity header name from the resolved route binding, which is resolved once at startup and costs nothing per message. Alternatively, reject unsupported bindings at startup (D16/D24). Add a regression test with a custom header binding on a FIFO queue. Blocking: the D18 gate is unresolved. The PR description itself reports 856 B/message from Relayer's own text conversion, against the zero-allocation budget. AGENTS.md requires explicit maintainer approval for that trade-off, and Everything else I looked at is consistent with the stated design: native batching, native groups and timers, and read-only validation. Docs and sidebar are updated. |
8b7b93d to
2542d93
Compare
Review of PR #229 (SQS send adapter)Blocking findings (verified against the head in
Non-blocking: the PR states the 5% throughput budget and Native AOT publish were not validated. Please address both before promotion. Docs, tests (LocalStack), batching and topology are otherwise reasonable. The draft should stay a draft until items 1 and 2 are resolved. |
2542d93 to
d746fb9
Compare
Review of #229: native SQS sending and queue topologyI reviewed What I checked
Non-blocking notes
|
d746fb9 to
5e3120f
Compare
|
Disposition of the earlier Claude reviews at 4eaa966, 8b7b93d and 2542d93: the FIFO custom-header finding is fixed in 5e3120f and the inline Codex thread has been replied to and resolved. The startup-resolved binding reuses the existing header comparison with no additional per-message allocation. The separate D18 allocation decision remains blocking; this PR stays draft and needs-human. The earlier minor findings retain their evidence-based dispositions in #229 (comment). Final Release build and all 22 SQS/configuration/LocalStack tests pass. Local documentation installation remained incomplete, and the build attempt lacked Docusaurus; the PR body records this limitation and withdraws the inaccessible old evidence-retention claim. No throughput or Native AOT validation is claimed for this head. |
|
@codex review This head fixes configured FIFO identity mapping and rebases onto main. The separate D18 maintainer decision remains unresolved; review correctness without treating this request as performance approval. Local docs installation did not complete, as recorded in validation. |
|
Review of PR #229 at head 5e3120f (SQS send adapter). Earlier finding resolved. The Blocking: per-message allocations without maintainer approval (AGENTS.md, D18). The PR description reports 856 B/message from the string conversions of body and headers in
If the exception is approved, these cheaper steps stay within it:
Minor, non-blocking
Process. Attach the |
|
Disposition of Claude run 42309111127/1 on 5e3120f:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e3120fd73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Maintainer decision is on #223: option 1 approved under D52. |
5e3120f to
2185789
Compare
|
Fixed the native-metrics finding in 2185789: single sends and each split native batch count actual entries, and duration completes on success, exceptions and partial batch failure. Deterministic tests verify completion timing and failure tags; preparation failures and empty batches remain excluded. All 21 SqsSendTests, full Release build and website build pass. Metrics-on/off benchmark cases were added. The maintainer approved the former D18 blocker in #223 under D52 (76402e0). This head rebases onto that decision and documents the native-required string conversions and retained raw-baseline pin. The PR remains draft for fresh reviews; no performance approval is inferred from review results. |
|
@codex review This head fixes native send metrics and includes the maintainer-approved D52 decision from main. The SQS page names the required native strings; the raw binding benchmark remains the allocation pin. Please review the current head. Full Release build, 21 focused tests and docs build pass; full default-JSON throughput is not newly measured. |
Review of PR #229 (SQS send and topology)I read Correctness. I found no actionable issues.
Project rules.
Non-blocking notes.
The change is sound. |
|
Disposition of Claude review 42724822323/1 on 2185789: both notes are non-blocking. Keep the exact lowercase FIFO attribute validation: it follows the native attribute representation and rejects mismatches early. Keep native deduplication validation for low-level sends: the website FIFO section already requires native deduplication configuration or an explicit callback ID when the event identity is absent; SqsSendState.Prepare preserves a callback-supplied MessageDeduplicationId. Adding another check is an optional follow-up, so no wording-only or optional-validation push is warranted. Claude is CLEAR for this head; prior inline threads remain resolved with no newer reviewer replies. Codex review request #229 (comment) is pending (the summary reports running on this exact head), within its 15-minute request window. Leave draft and auto-merge disabled until its verdict; no duplicate request or competing review run was started. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The earlier waiting blocker is cleared: Codex summary now reports completed with no findings for 2185789, matching Claude CLEAR run 42724822323/1. All review surfaces were checked, and both inline threads remain resolved without later reviewer replies. Previous dispositions stand. Reverified all 123 retained files against the original SHA-256 inventory at /Users/tom/git/Relayer-evidence/pr-229/21857895c73a7d30a402a0b00caccb5a9f765343/: no missing files or hash mismatches. The original worktree has been cleaned, so this verifies the archived inventory rather than repeating comparison to removed originals. No new test or benchmark result is claimed. Proceeding through the guarded promotion and auto-merge script. |
2185789 to
a59bd05
Compare
|
@codex review Run 42725296168 passed, clearing the previous waiting blocker. Main subsequently introduced documentation conflicts; rebased onto 07f543f and preserved its completed Service Bus receiver status alongside SQS sending. Range-diff confirms both later correctness fixes are unchanged. Release build, 21 SqsSendTests and docs build pass; SHA-bound evidence is in the PR body. Fresh reviews are required for this rebased head; auto-merge is disabled and the PR is draft. |
Review of #229: SQS sending and topologyI read the SQS transport, send state and pool, builder, options and batch exception, and listed the test names. I did not run the build or tests. Conventions
Correctness
Non-blocking observations
No actionable blocking findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a59bd050e8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Fixed the duplicate FIFO group decoding in 86ff83d: Prepare retains the first decoded MessageGroupId and restores that same string after native configuration, including batch entry copying. This reuses existing WireString decoding and the native request field; no native capability is reimplemented. Per-message cost: removes one string allocation and UTF-8 conversion for a nonempty UTF-8 ordering key; no added allocation, loop, lock or await. SqsBindingBenchmarks now includes standard/FIFO parameters with equivalent raw-client group and deduplication preparation; performance label remains. Regression test failed before the fix on string reference identity and passes after it. All 22 SqsSendTests pass, full Release build (including benchmarks) passes with zero warnings/errors, npm ci and npm run build pass, and git diff --check passes. No new broker run, full suite, AOT publish or throughput measurement is claimed. Callback precedence remains unchanged; the website documents the single decode and FIFO benchmark case. Evidence for this head is archived at /Users/tom/git/Relayer-evidence/pr-229/86ff83de2ea47d29bf208eab6a21fc5694b0eda7/: all 129 files were SHA-256 compared to originals; inventory.json records the hashes. Earlier validation remains historical. Disposition of Claude run 42726992678/1: both observations are non-blocking suggestions. Keep streaming batch preparation: the site already documents non-atomic batches and earlier delivery before failure, and a validation pre-pass adds per-message work without providing atomic delivery. Keep the current native provisioning wait; parallel startup provisioning is an optional optimization outside this fix. No separate optional-refactor push is warranted. Run 42725296168 succeeded; the earlier wait no longer holds. This pushed fix requires fresh head-bound reviews and stays draft with auto-merge disabled. |
|
@codex review This head reuses the decoded FIFO group string after native callbacks, fixing the duplicate allocation. The regression fails before/passes after; all 22 focused tests, full Release build and docs build pass. FIFO/raw-client binding benchmark coverage is extended; no new throughput measurement is claimed. |
Review of PR #229 (SQS send and topology)I read
|
|
The earlier wait on CI run 42725296168 is cleared: that run succeeded. The current head is 86ff83d, so that older CI result is historical. Current-head audit: Claude run 42728062528/1 succeeded with CLEAR and no findings. Codex request #229 (comment) is within its 15-minute request window; the mutable summary explicitly reports running on this head. No duplicate review request or workflow dispatch is warranted. All review bodies, inline comments, conversation comments and all three resolved threads were checked; existing dispositions stand, with no newer reviewer replies. Eight Claude rounds and six force-pushes are below the rework limits. The PR is mergeable, remains draft and has no auto-merge request. Draft CI skips are expected. #223 already has Closes linkage here and its D52 decision is approved; there is no remaining agent-workable prerequisite, finished parent, stale scope or superseding PR to act on. Promotion awaits the current Codex verdict under the draft review lifecycle. This is a pending review, not a human/upstream/credentials deferral; no hold label was added. No new validation result is claimed. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The earlier wait on run 42725296168 is cleared: it succeeded. Both required reviewers now approve current head 86ff83d: Claude CLEAR run 42728062528/1 and the Codex summary completed with no findings. Rechecked all review surfaces; all three threads remain resolved without later reviewer replies, and prior dispositions stand. Reverified all 129 archived files against inventory.json at /Users/tom/git/Relayer-evidence/pr-229/86ff83de2ea47d29bf208eab6a21fc5694b0eda7/: no missing files or SHA-256 mismatches. The original worktree has been cleaned, so this rechecks the retained inventory rather than repeating comparison to removed originals. No new validation result is claimed. The approved D52 decision and Closes #223 linkage already cover the prerequisite; no stale scope, finished parent or replacement needs action. Proceeding through guarded promotion and auto-merge. |
Adds AWS SDK v4 standard/FIFO SQS sending and non-destructive queue topology. Receivers, settlement, health and conformance remain #224; SNS remains #225.
Closes #223
Native and existing features reused
AWSSDK.SQS 4.0.100.22 SendMessageRequest and its marshaller already provide the string MessageDeduplicationId field; their source and AssemblyFileVersion were checked. Relayer's existing HeaderNames, captured route options, pooled send state and header traversal supply the identity. No replacement deduplication, ordering, retry or broker runtime is introduced.
The metrics correction reuses Relayer's existing SendTracing.RecordNativeSend and StartNativeSend, as the Kafka and Service Bus adapters do. Each actual SDK call counts its entries and records duration through success, exception or partial batch failure. Empty batches and preparation failures record no native attempt. No replacement AWS runtime is introduced.
Maintainer performance decision
Option 1 was explicitly approved on #223 under D52, recorded on main in 76402e0 and included by this rebase. The SQS site names required body, attribute-value and group-ID strings. SqsBindingBenchmarks retains the raw-client allocation pin. The earlier 856 B/message on both paths is a historical report, not new measurement; the full default-JSON 5% throughput budget remains unmeasured. Fixed-capacity stable-header caching is an optional follow-up, per the maintainer.
This correction adds native counter/timer calls and finally completion, with 0 additional B/message from those helpers. SqsSendBenchmarks now covers metrics enabled/disabled; the performance label remains attached. No new benchmark result is claimed.
Validation of a59bd05
Rebased onto main (07f543f) to resolve roadmap/status conflicts caused by the completed Service Bus receiver work. The resolution preserves main's Service Bus implementation status and SQS sending status; range-diff confirms the FIFO identity and metrics fix commits are unchanged. No runtime changes were introduced by this rebase.
Evidence
New validation logs, changed sources, test binaries and report are archived at /Users/tom/git/Relayer-evidence/pr-229/a59bd050e8bd62c5f6ad0c1a5ea49d051901aa17/. All 143 files were SHA-256 checked against originals; inventory.json records the hashes. Local retention lasts while this PR is open. Earlier evidence remains historical and is not evidence for this rebased head.
Draft with auto-merge disabled for fresh Claude and Codex reviews of this head.
FIFO group decoding correction
Fixed the duplicate FIFO group decoding in 86ff83d: Prepare retains the first decoded MessageGroupId and restores that same string after native configuration, including batch entry copying. This reuses existing WireString decoding and the native request field; no native capability is reimplemented. Per-message cost: removes one string allocation and UTF-8 conversion for a nonempty UTF-8 ordering key; no added allocation, loop, lock or await. SqsBindingBenchmarks now includes standard/FIFO parameters with equivalent raw-client group and deduplication preparation; performance label remains.
Regression test failed before the fix on string reference identity and passes after it. All 22 SqsSendTests pass, full Release build (including benchmarks) passes with zero warnings/errors, npm ci and npm run build pass, and git diff --check passes. No new broker run, full suite, AOT publish or throughput measurement is claimed. Callback precedence remains unchanged; the website documents the single decode and FIFO benchmark case.
Evidence for this head is archived at /Users/tom/git/Relayer-evidence/pr-229/86ff83de2ea47d29bf208eab6a21fc5694b0eda7/: all 129 files were SHA-256 compared to originals; inventory.json records the hashes. Earlier validation remains historical.
Disposition of Claude run 42726992678/1: both observations are non-blocking suggestions. Keep streaming batch preparation: the site already documents non-atomic batches and earlier delivery before failure, and a validation pre-pass adds per-message work without providing atomic delivery. Keep the current native provisioning wait; parallel startup provisioning is an optional optimization outside this fix. No separate optional-refactor push is warranted.
Run 42725296168 succeeded; the earlier wait no longer holds. This pushed fix requires fresh head-bound reviews and stays draft with auto-merge disabled.